import request from '@/utils/request'

// 查询进货单管理列表
export function listPurchaseList(query) {
  return request({
    url: '/purchase/purchaseList/list',
    method: 'get',
    params: query
  })
}

// 查询进货单管理详细
export function getPurchaseList(purchaseListId) {
  return request({
    url: '/purchase/purchaseList/' + purchaseListId,
    method: 'get'
  })
}

// 新增进货单管理
export function addPurchaseList(data) {
  return request({
    url: '/purchase/purchaseList',
    method: 'post',
    data: data
  })
}

// 修改进货单管理
export function updatePurchaseList(data) {
  return request({
    url: '/purchase/purchaseList',
    method: 'put',
    data: data
  })
}

// 删除进货单管理
export function delPurchaseList(purchaseListId) {
  return request({
    url: '/purchase/purchaseList/' + purchaseListId,
    method: 'delete'
  })
}
